﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;

namespace CustomsDocumentOA.Project.CusDocument.Dto
{
    [AutoMapTo(typeof(CDOA_WorkOrder))]
    public class UpdateWorkOrderDto : EntityDto<Guid>
    {
        /// <summary>
        /// 预计完成时间
        /// </summary>
        public DateTime? ExpectedTime { get; set; }
        /// <summary>
        /// 工单截止日期
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        public string WorkOrderNo { get; set; }
        /// <summary>
        /// 工单标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 工单备注
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 指派人
        /// </summary>
        public string Assignment { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        public string CustomName { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string BusinessManager { get; set; }
        /// <summary>
        /// 是否作废,true代表作废;false代表未作废
        /// </summary>
        public bool IsCancel { get; set; } = false;
        /// <summary>
        /// 工单状态,0进行中;1作废;2已完成
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string Contact { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? dateTime { get; set; }
    }
    public class CreateWorkOrder 
    {
        /// <summary>
        /// 工单截止日期
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 工单标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 工单备注
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        public string CustomName { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string Contact { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime dateTime { get; set; }
    }
    public class ReCreateWorkOrder
    {
        /// <summary>
        /// 预计完成时间
        /// </summary>
        public DateTime? ExpectedTime { get; set; }
        /// <summary>
        /// 工单截止日期
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string BusinessManager { get; set; }
        /// <summary>
        /// 指派人
        /// </summary>
        public string Assignment { get; set; }
        /// <summary>
        /// 工单id
        /// </summary>
        public Guid WorkId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? dateTime { get; set; }
    }
}
